import { Rule, RuleType } from '@midwayjs/validate';
import { ApiProperty } from "@midwayjs/swagger";
/**
 * 描述
 */
export class UserinfoDTO {
  // 描述
  @ApiProperty({ example: 12, description: '用户id'})
  @Rule(RuleType.number().required())
  id: number;

  @ApiProperty({ example: "Allen", description: '用户名称'})
  @Rule(RuleType.string().required())
  firstName: string;

  @Rule(RuleType.string().max(10))
  lastName: string;

  @Rule(RuleType.number().max(60))
  age: number;
}
